import React, { Component } from 'react'
import Form2 from '../components/Form2'
import RouteWithSubRoutes from '../router/RouteWithSubRoutes'
import {Switch} from "react-router-dom"


export default class Register extends Component {
  
  render() {

    return (
      <div>Register页面
        <Form2 {...this.props}></Form2>
        <div>
          <a href='#/wode/register/'>消息一</a>|
          <a href='#/wode/register/info2'>消息二</a>
        </div>
        <Switch>
            {this.props.list.map((item,index)=>{
              return  <RouteWithSubRoutes key={index} {...item}></RouteWithSubRoutes>
            })}
        </Switch>
      </div>
    )
  }
}
